<?php
    // Gets the paths of the images of the leagues.
    // Parameters : none
    // Return : array[string]
    function getLeaguesPicturesPaths()
    {
        // Including the database connexion.
        require_once 'src/dbconnect.php';
        
        // Creating the query and the array of results.
        $query =
        'SELECT IMAGELIGUE
        FROM LIGUE';
        $returnValue = array();
        
        // Executing the query.
        $queryResults = $db->query($query);
        
        // Storing the results into an array.
        foreach ($queryResults as $resultLine)
        {
            $returnValue[] = $resultLine['IMAGELIGUE'];
        }
        
        // Returning the array.
        return $returnValue;
    }
?>